package com.kaitian.demo.cloud.eureka_client2.service;

import com.kaitian.demo.cloud.eureka_client1.feign.Client1Feign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author ：xietian
 * @version ：V1.0
 * @program ：demo
 * @date ：Created in 2022/4/13 8:55
 * @description ：Feign调用测试用服务
 */
@Slf4j
@Service
public class FeignTestService {

    @Autowired
    private Client1Feign client1Feign;

    @PostConstruct
    public void testFeignRequest() {
        for (int i = 1; i <= 10; i++) {
            client1Feign.testRequest();
        }
    }
}